import Vue from 'vue'
import Router from 'vue-router'
import user from './components/content.vue'
import notic from './components/Notic.vue'
import {
  resolve
} from 'q';

Vue.use(Router)

export default new Router({
  mode: 'hash',

  base: process.env.BASE_URL,
  routes: [{
      path: "/",
      redirect: "/User",
    },
    {
      path: "/User",
      name: "User",
      component: user
    },
    {
      path: "/Notic",
      name: "Notic",
      component: notic
    },
    {
      path: '/Technology',
      name: 'Technology',
      component: () => import('./components/Technology.vue')

    }, {
      path: '/Message/index',
      name: 'Message',
      component: () => import('./components/Message/index.vue'),
    },
    {
      path: '/Message/group',
      name: "group",
      component: () => import('./components/Message/group.vue'),
    }

  ]
})